package se.wangs.decorator.interfacetype.decorators;

import se.wangs.decorator.interfacetype.Beverage;
import se.wangs.decorator.interfacetype.CondimentDecorator;

/**
 * -- coding: UTF-8 -- *
 *
 * @author wangs
 * @date 2023/12/11 16:09
 * @description 加牛奶
 */
public class Whip extends CondimentDecorator {
    public Whip(Beverage beverage) {
        super(beverage);
    }

    @Override
    public String getName() {
        return beverage.getName() + ", Whip";
    }

    @Override
    public double cost() {
        return beverage.cost() + 0.10;
    }
}
